package com.wing.device.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.device.model.entity.DeviceTypeAttribute;
import com.wing.device.model.request.DeviceTypeAttributeForm;
import com.wing.device.model.response.DeviceTypeAttributeVO;

import java.util.List;
import java.util.Map;

/**
 * 设备类型属性-Service
 *
 * @author
 */
public interface DeviceTypeAttributeService extends IService<DeviceTypeAttribute> {

    /**
     * 添加
     *
     * @param deviceTypeAttributeForm
     * @return
     */
    int add(DeviceTypeAttributeForm deviceTypeAttributeForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<DeviceTypeAttributeVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<DeviceTypeAttributeVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    DeviceTypeAttributeVO get4appById(Long id);

    int update(DeviceTypeAttributeForm attributeForm);
}
